home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / gnulib / ghostscr / cc_head.mak < prev    next >
Encoding:
Makefile  |  1991-02-04  |  3.4 KB  |  119 lines

  1. #    Copyright (C) 1989, 1990 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # makefile for Ghostscript, Unix/cc/X11 configuration.
  21.  
  22. # ------------------------------- Options ------------------------------- #
  23.  
  24. ####### The following are the only parts of the file you should need to edit.
  25.  
  26. # ------ Generic options ------ #
  27.  
  28. # Define the default directory/ies for the runtime
  29. # initialization and font files.  Separate multiple directories with a :.
  30. # `pwd` means use the directory in which the 'make' is being done.
  31.  
  32. GS_LIB_DEFAULT=`pwd`:`pwd`/fonts
  33.  
  34. # Choose generic configuration options.
  35.  
  36. # -DDEBUG
  37. #    includes debugging features (-Z switch) in the code.
  38. #      Code runs substantially slower even if no debugging switches
  39. #      are set.
  40. # -DNOPRIVATE
  41. #    makes private (static) procedures and variables public,
  42. #      so they are visible to the debugger and profiler.
  43. #      No execution time or space penalty.
  44.  
  45. GENOPT=
  46.  
  47. # ------ Platform-specific options ------ #
  48.  
  49. # Define the other compilation flags.
  50. # Add -DBSD4_2 for 4.2bsd systems.
  51. # Add -DSYSV for System V.
  52.  
  53. CFLAGS=-O
  54.  
  55. # Define platform flags for ld.
  56. # Most Unix systems accept -X, but some don't.
  57. # Sun OS4.n needs -Bstatic.
  58.  
  59. LDPLAT=-X
  60.  
  61. # Define any extra libraries to link into the executable.
  62. # The default is for X Windows.
  63.  
  64. EXTRALIBS= -lX11
  65.  
  66. # Define the installation commands and target directories for
  67. # executables and files.  Only relevant to `make install'.  If you don't
  68. # have GNU install (part of the fileutils distribution), use cp.
  69.  
  70. proginstall = install -m 775
  71. fileinstall = install -m 664
  72. bindir = /usr/local/gnu/bin
  73. libdir = /usr/local/gnu/lib/ghostscript
  74.  
  75. # --------------------------- Choice of devices --------------------------- #
  76.  
  77. # Choose the device(s) to include.  See gdevs.mak for details.
  78.  
  79. DEVICES=x11
  80. DEVICE_OBJS=$(x11_)
  81.  
  82. # ---------------------------- End of options --------------------------- #
  83.  
  84. # Define the name of the makefile -- used in dependencies.
  85.  
  86. MAKEFILE=unix-cc.mak
  87.  
  88. # Define the extensions for the object and executable files.
  89.  
  90. OBJ=o
  91. XE=
  92.  
  93. # Define the ANSI-to-K&R dependency.
  94.  
  95. AK=ansi2knr$(XE)
  96.  
  97. # Define the directory separator and shell quote string.
  98.  
  99. DS=/
  100. Q=\"
  101.  
  102. # Define the compilation rules and flags.
  103.  
  104. CCFLAGS=$(GENOPT) $(CFLAGS)
  105.  
  106. .c.o:
  107.     ./ansi2knr $*.c _temp_.c
  108.     $(CC) $(CCFLAGS) -c _temp_.c
  109.     mv _temp_.o $*.o
  110.  
  111. CCA=./ccgs "$(CC) $(CCFLAGS)" _temp_.c
  112. CCNA=$(CCA)
  113. CCINT=$(CCA)
  114.  
  115. # --------------------------- Generic makefile ---------------------------- #
  116.  
  117. # The remainder of the makefile (ghost.mak, gdevs.mak, and unixtail.mak)
  118. # is generic.  tar_gs concatenates all these together.
  119.